import Vue from 'vue'
import Router from 'vue-router'
import Login from '../view/login'
import Index from '../view/index'
import Mainindex from '../view/mainindex'
import Jianzhi from '../view/jianzhi'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      redirect: '/mainindex',
    },{
      path: '/mainindex',
      name: 'Mainindex',
      component: Mainindex,
    },{
      path: '/index',
      name: 'Index',
      component: Index,
    },
    {
      path: '/login',
      name: 'Login',
      component: Login,
    },{
      path: '/jianzhi',
      name: 'Jianzhi',
      component: Jianzhi,
      
    }
  ]
})
